home *** CD-ROM | disk | FTP | other *** search
- Path: tank.news.pipex.net!pipex!iol!usenet
- From: David Byrden <goyra@iol.ie>
- Newsgroups: comp.lang.c++
- Subject: Re: MSVC++4.0 compile error- help needed
- Date: 16 Mar 1996 22:01:27 GMT
- Organization: Ireland On-Line
- Message-ID: <4ifdnn$m8o@nuacht.iol.ie>
- References: <4if0if$m68@news.csus.edu>
- NNTP-Posting-Host: dialup-184.dublin.iol.ie
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22KIT (Windows; I; 16bit)
-
-
-
- >>However, when I create a Windows program (MDI, SDI, Dialog-based) and
- >> add the CTest.cpp to the project and the CTest.h to a simple dialog
- >> class that I create, upon building the project I receive the following
- >> message:
-
- >> :\Projects\test\CTest.cpp(23) : fatal error C1010: unexpected end of
- >> file while looking for precompiled header directive
-
-
- Visual C++ can speed up its compilations by using a "precompiled
- header". The reason is that you often include many large header files
- which never change, and which get compiled repeatedly. This feature lets
- the compiler "predigest" them just once and store the results in a PCH
- file.
-
- I guess that precompiled headers are the default for MFC programs,
- because of the large MFC headers. You can dig around in your project
- settings and disable the feature.
-
- If you want to actually use it, you must include the header file
- STDAFX.H at the top of each CPP file. The predigested stuff is whatever
- you put in STDAFX.H
-
-
- David
-
-
-
-